package com.diandi.ddsb.service.impl;


import com.diandi.ddsb.manager.RoleManager;
import com.diandi.ddsb.service.RoleService;
import com.diandi.ddsb.vo.RoleMangerVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

/**
 * 角色管理实现类
 *
 * @author maliming
 */
@RestController
public class RoleServiceImpl implements RoleService {


    @Autowired
    private RoleManager roleManager;

    /**
     * 根据id查询
     */
    @Override
    public RoleMangerVo findById(long id) {
        return roleManager.findById(id);
    }

    @Override
    public RoleMangerVo getAdminRole() {
        return roleManager.getAdminRole();
    }


}
